/*
 * @页面名称:
 * @描述:
 * @作者: 辛慰
 * @Date: 2019-05-28 18:20:40
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import LightTimeline from '../node_modules/vue-light-timeline'
import vuetable from '../node_modules/vuetable-2'
import element from '../node_modules/element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './plugins/element.js'
import axios from 'axios'
import moment from 'moment' // 时间格式化控件(使用this.$dtime)
Vue.filter('moment', function (dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') { // 注册全局事件过滤器
  if (dataStr) {
    return moment(dataStr).format(pattern)
  } else {
    return ''
  }
})
Vue.prototype.$http = axios
Vue.prototype.$dtime = moment
Vue.use(LightTimeline)
Vue.use(vuetable)
Vue.use(element)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
